<template>
  <div>
    路由测试
    <hr>
    <!-- a -->
    <router-link to="/help">帮助</router-link>
    <button @click="goAbout">逻辑跳转-关于</button>
    <hr>
    <!-- 渲染路由的容器 -->
    <router-view></router-view>
  </div>
</template>

<script setup>
import {useRouter} from "vue-router";
const router = useRouter();
const goAbout = ()=>{
  router.push("/about");
}
</script>

<style lang="scss" scoped>

</style>